{{ $page := . }} {{ $featured := (.Resources.ByType "image").GetMatch "*featured*" }} {{ $anchor := $page.Params.image.focal_point | default "Smart" }} {{/* Set default titles for node pages */}} {{ $title := .Title }} {{ if and (not $title) .IsNode }} {{ if eq .Type "post" }} {{ $title = i18n "posts" }} {{ else if eq .Type "talk" }} {{ $title = i18n "talks" }} {{ else if eq .Type "publication" }} {{ $title = i18n "publications" }} {{end}} {{end}} {{/* Header image */}} {{ if and .Params.header.image (not (and $featured (not .Params.image.preview_only))) }}
{{ . | markdownify | emojify }}
{{end}} {{ partial "header_maincodefolding" . }} {{ partial "page_metadata" (dict "page" $page "is_list" 0 "share" true) }} {{ partial "page_links_div.html" $page }}{{ . | markdownify | emojify }}
{{end}} {{ if not .IsNode }} {{ partial "header_maincodefolding" . }} {{ partial "page_metadata" (dict "page" $page "is_list" 0 "share" true) }} {{ partial "page_links_div.html" $page }} {{end}}